<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <!-- <li class="active"><a href="{:url('AdminCategory/index')}">分类管理</a></li>-->
        <li><a href="#">认证信息展示</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('TechAdmin/searchrenzheng')}">
        剧种:
        <select class="form-control" name="juzhong" style="width: 140px;">
            <option value='all'>全部</option>
            <foreach name="juzhong" item="vo">
                <option value="{$vo.id}">{$vo.name}</option>
            </foreach>
        </select> &nbsp;&nbsp;
        是否认证:
        <select class="form-control" name="rezheng" style="width: 140px;">
            <option value='all'>全部</option>
            <option value="1">已经认证</option>
            <option value="0">未认证</option>
        </select> &nbsp;&nbsp;
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入帐号/姓名/剧种/行当/流派..." width="400px">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('TechAdmin/techrenzheng')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>帐号</th>
                <th>剧种</th>
                <th>行当</th>
                <th>所在单位</th>
                <th style="width:500px;">照片</th>
                <th>流派</th>
                <th>所获荣誉</th>
                <th style="width:500px;">资格证书</th>
                <th>毕业院校</th>
                <th>简介</th>
                <th>师从</th>
                <th>时间</th>
                <th>是否认证</th>
                <th width="180">操作</th>
            </tr>
            </thead>
            <tbody>
            <noempty name="res">
                <foreach name="res" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>
                            {$vo.username}
                        </td>
                        <td>
                            {$vo.juzhong}
                        </td>
                        <td>
                            {$vo.hangdang}
                        </td>
                        <td>
                            {$vo.danwei}
                        </td>
                        <td >
                            <noempty name="$vo.images">
                                <foreach name="$vo.images" item="value">
                                    <a href="javascript:parent.imagePreviewDialog('<?php echo '/'.$value ?>');">
                                        <!--<i class="fa fa-photo fa-fw"></i>-->
                                       <img src="<?php echo '/'.$value ?>" style="width:100px;height:100px">
                                    </a>
                                </foreach>
                            </noempty>
                        </td>
                        <td>
                            {$vo.liupai}
                        </td>
                        <td>
                            {$vo.rongyu}
                        </td>
                        <td >
                            <noempty name="$vo.zhengshu">
                                <foreach name="$vo.zhengshu" item="value">
                                    <a href="javascript:parent.imagePreviewDialog('<?php echo '/'.$value ?>');">
                                        <!--<i class="fa fa-photo fa-fw"></i>-->
                                        <img src="<?php echo '/'.$value ?>" style="width:100px;height:100px">
                                    </a>
                                </foreach>

                            </noempty>
                        </td>
                        <td>
                            {$vo.yuanxiao}
                        </td>
                        <td>
                            {$vo.jianjie}
                        </td>
                        <td>
                            {$vo.shicong}
                        </td>
                        <td>
                            <if condition="$vo.renzhengtime==''">
                              <else/>
                                {:date('Y-m-d H:i:s',$vo.renzhengtime)}
                            </if>

                        </td>
                        <td>
                            <if condition="$vo.isrenzheng==0">
                                未认证
                                <else/>
                                已经认证
                            </if>
                        </td>
                        <td>
                            <a href="{:url('TechAdmin/isrenzheng',array('id'=>$vo['id']))}" class="js-ajax-submit">通过认证</a>
                            <a href="{:url('TechAdmin/rerenzheng',array('id'=>$vo['id']))}">重新认证</a>
                         <!--   <a href="{:url('AdminFlower/floweredit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                            <a href="{:url('AdminFlower/deleteflower',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>-->
                        </td>
                </foreach>
            </noempty>
            </tbody>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>